package Java多线程技术.第1章;
//实现3个线程共同去对一个count变量进行操作
public class MyThread extends Thread{

    private int count = 5;


    @Override
    public synchronized void run() {
        super.run();
        count--;
        System.out.println(Thread.currentThread().getName()+" count "+count);
    }
}
